CallLogs

interface CallLogs

This module is used to manage call logs.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard

Interface defining callbacks for handling events related to Call Logs within the SDK.

Functions

Link copied to clipboard
abstract fun deleteAllCallLogs(listener: RainbowListener<Unit, Unit>?)

Deletes all call logs

Link copied to clipboard
abstract fun deleteAllGroupCallLogs(groupId: String, listener: RainbowListener<Unit, Unit>)

Delete all call logs from the group

Link copied to clipboard
abstract fun deleteCallLogGroups(callLogGroups: ArrayList<CallLogGroup>, listener: RainbowListener<Unit, Unit>?)

Deletes all call logs from the given CallLogGroup list

Link copied to clipboard
abstract fun deleteCallLogs(logs: ArrayList<CallLog>, listener: RainbowListener<Unit, Unit>?)

Deletes all call logs from the given CallLog list

Link copied to clipboard
abstract fun deleteGroupCallLogs(groupId: String, groupCallLogs: ArrayList<GroupCallLog>, listener: RainbowListener<Unit, Unit>)

Delete call logs from the group

Link copied to clipboard
abstract fun fetchAllCallLogs(listener: RainbowListener<Unit, Unit>? = null)

Fetch all CallLogs. This method is already called internally at the SDK startup. Only to use if you want to force refresh the data.

Link copied to clipboard
abstract fun fetchGroupCallLogs(groupId: String, listener: RainbowListener<List<GroupCallLog>, Unit>)

Fetch all CallLogs associated to the given group id.

Link copied to clipboard
abstract fun getAllCallLogs(): ArrayItemList<CallLogGroup>

Get all CallLogGroup of the user. The returned @object:ArrayItemList object allows you to listen changes.

Link copied to clipboard
abstract fun getAllMissedCallLogs(): ArrayItemList<CallLog>

Get all missed CallLog of the user. The returned @object:ArrayItemList object allows you to listen changes.

Link copied to clipboard
abstract fun getGroupCallLogs(groupId: String): List<GroupCallLog>

Get all CallLogApi of the group.

Link copied to clipboard
abstract fun getGroupMissedCallLogCounter(groupId: String): Int

Get group missed call count.

Link copied to clipboard
abstract fun getMissedCallLogCounter(): Int

Get missed call count.

Link copied to clipboard
abstract fun getMissedCallLogGroupForContact(contact: IRainbowContact?): CallLogGroup?

Get the CallLogGroup of missed call logs from the associated IRainbowContact, if any

Link copied to clipboard
abstract fun markAllCallLogsAsRead()

Mark all call logs as read

Link copied to clipboard
abstract fun markAllGroupCallLogsAsRead(groupId: String)

Mark all group call logs as read

Link copied to clipboard
abstract fun markCallLogsAsReadForGroup(callLogGroup: CallLogGroup)

Mark all call logs as read for a CallLogGroup associated to a contact

Link copied to clipboard

Registers an implementation of ICallLogsListener to receive callbacks when the SDK notifies of a new event.

Link copied to clipboard

Register a listener for call logs updates groups

Link copied to clipboard

Unregisters a previously registered ICallLogsListener, stopping callbacks for notifications.

Link copied to clipboard

Unregister a listener for call logs updates groups